package com.yh;

import com.yh.javabean.Admin;
import com.yh.util.MyJDBCutil;

import java.util.ArrayList;

public class test {
    public static void main(String[] args) {
        String sql="select * from admin";
        ArrayList<Admin> dql = MyJDBCutil.dql(sql, Admin.class);
        for (Admin admin : dql) {
            System.out.println(admin);
        }
    }
}
